#ifndef LoadListFiles_h
#define LoadListFiles_h

#include "string.h"
#include "stdio.h"
#include <iostream>

namespace FPTK{

class loadlistfiles
{
public:
    loadlistfiles(char *filename,int _nb,bool _useref,std::ostream *_out);
~loadlistfiles();
int GetNbFiles();
int operator++();
int operator--();
int operator++(int notused);
int operator--(int notused);
char* GetCurrentFile();
int SetFileToGet(int _current);
int Increment();
int Decrement();
char* GetRefFile();
int SetNbFile(int _nb);
bool IsFinished();
void PrintListFiles();
char* GetExtensionCurrentFile();


private:
std::ostream* out;
bool CheckExtension(char* name,char* ext);
int nb;
int current;
char* extension;
char **list;
char* ref;
bool useref;
};

} //end namespace FPTK

#endif

